<?php
/**
 * Created by PhpStorm.
 * User: 47474
 * Date: 2021/12/11
 * Time: 16:01
 */

if(empty($_COOKIE['username'])){
   echo '<a href="../login.php">尚未登录，请登录</a>';
   die;
}

?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>用户登录</title>
</head>
<body>
<form action="updatepwd.php" method="post">
    <p>修改密码界面</p>
    <p>旧密码：<input type="text" name="oldPwd" /></p>
    <p>新密码：<input type="text" name="newPwd" /></p>
    <input type="submit" value="修改密码" />
</form>

</body>
